#!/bin/bash

while read LINE ; do
    [[ "$LINE" == *$1* ]] && echo $LINE
done < $2
